import request from "@/config/axios";

const baseUrl = "http://localhost:3000/dev-api/notification";

// 分页列校级通知
export const fetchGetNotificationList = (params: any) => {
  return request.get({ url: `${baseUrl}/list`, params });
};

// 新增校级通知
export const fetchPostNotification = (data: any) => {
  return request.post({ url: `${baseUrl}`, data });
};

// 修改校级通知
export const fetchPutNotification = (data: any) => {
  return request.put({ url: `${baseUrl}`, data });
};

// 删除校级通知
export const fetchDeleteNotification = (id: any) => {
  return request.delete({ url: `${baseUrl}/${id}`});
};




